from django.urls import path
from . import views

urlpatterns = [
    path('lazy-list', views.LazyListAPI.as_view()),     # 部门列表
    path('lazy-tree', views.LazyTreeAPI.as_view()),     # 部门树节点
    path('tree', views.TreeAPI.as_view()),              # 部门完整树结构
    path('detail', views.DetailAPI.as_view()),          # 获取详情
    path('submit', views.SubmitAPI.as_view()),          # 部门新增/修改
    path('remove', views.RemoveAPI.as_view()),          # 删除菜单
]